<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%><%@page import="com.zpyr.mvc.vo.Carc_member"%><%@page import="java.lang.reflect.Method"%><%@page import="com.zpyr.mvc.vo.Carc_info"%><%@page import="java.util.List"%><%@page import="com.zpyr.common.StringUtil"%><%
%>
<%
	response.setHeader("Access-Control-Allow-Origin", "*");
%>
[
<%
	String validPwd = (String) request.getAttribute("validPwd");
	Carc_member member = (Carc_member) request.getAttribute("member");
	if(member != null) {
%>{<%		
		String tagName = "";
		Object value = "";
		boolean innerSt = true;
		Method[] ms = member.getClass().getDeclaredMethods();
		innerSt = true;
		StringBuffer sb = new StringBuffer();
		for( Method m : ms ) {
			tagName = m.getName().substring(3).toLowerCase();
			if(tagName.equals("password")) continue;
			if(m.getName().startsWith("get") && m.getGenericParameterTypes().length == 0 ) {

				value = m.invoke(member , null);
				value = value == null? "" : value;
				
				value = StringUtil.textTOhtml( value.toString() );
				
				if(innerSt) sb.append("validPwd : '" + validPwd + "'");
				sb.append( " , "+tagName + " : '"+ value +"'" );
			}
			innerSt = false;
		}
		%><%=sb.toString()%><%
	}
%>}<%
%>
]